package com.aind.common.interceptor;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * Created by lupeng on 2017/2/12.
 */
@Aspect
@Component
public class MyInterceptor {
//    @Pointcut("execution(* com.aind.user.service.impl.UserServiceImpl.save(..))")
//    private void anyMethod(){}
    @Before("execution(* com.aind.user.service.impl.UserServiceImpl.save(..)) &&  args(user)")
    public void  beforMethod(String user){
        System.out.println("前置通知"+user+"11");
    }
}
